<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="${path}/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${path}/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${path}/styles/base.css">
<link rel="stylesheet" type="text/css" href="${path}/styles/simple.css">
<script type="text/javascript" src="${path}/scripts/jquery.min.js"></script>
<script type="text/javascript" src="${path}/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${path}/scripts/EasyUI.Export.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SmartCRM - 客户管理系统</title>
<script type="text/javascript">
	function addTab(node) {
		if ($('#tabMain').tabs('exists', node.text)) {
			var table = $('#tabMain').tabs('getTab', node.text);
			$('#tabMain').tabs('update', {
				tab : table,
				options : {
					href : node.attributes.url
				}
			});
			$('#tabMain').tabs('select', node.text);
		} else {
			$('#tabMain').tabs('add', {
				title : node.text,
				border : false,
				closable : true,
				href : node.attributes.url
			});
		}
	}

	function sexformat(value, row, index) {
		if (null == value) {
			return null;
		}
		if ('Woman' == value) {
			return '女';
		} else {
			return '男';
		}
	}

	function booleanFormat(value, row, index) {
		if (null == value) {
			return value;
		}
		if (value) {
			return '是';
		} else {
			return '否';
		}
	}

	function dateFormat(value, row, index) {
		if (null == value) {
			return null;
		}
		var dateValue = new Date(value);
		return myformatter(dateValue);
	}

	var accountStatus = {
		'true' : '启用',
		'false' : '禁用'
	};

	function getAccountStatus(value, row, index) {
		return accountStatus[value];
	}

	function myformatter(date) {
		var y = date.getFullYear();
		var m = date.getMonth() + 1;
		var d = date.getDate();
		return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);
	}

	function myparser(s) {
		if (!s)
			return new Date();
		var ss = (s.split('-'));
		var y = parseInt(ss[0], 10);
		var m = parseInt(ss[1], 10);
		var d = parseInt(ss[2], 10);
		if (!isNaN(y) && !isNaN(m) && !isNaN(d)) {
			return new Date(y, m - 1, d);
		} else {
			return new Date();
		}
	}
</script>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',border:false,href:'${path}/console/top.do'" style="height: 45px; padding: 5px;"></div>
	<div data-options="region:'west',title:'系统功能',split:true,href:'${path}/console/left.do'"
		style="width: 200px; padding-top: 10px;"></div>
	<div data-options="region:'center'">
		<div id="tabMain" class="easyui-tabs" data-options="border:false" style="width: fill;">
			<div title="首页" data-options="href:'${path}/console/main.do'" style="padding: 5px 5px 0px 5px;"></div>
		</div>
	</div>
	<div data-options="region:'south',border:false" style="height: 30px;">
		<p align="center">
			<span>关于我们</span>
		</p>
	</div>
</body>
</html>